package com.lawyer.entity;

import io.swagger.annotations.ApiModelProperty;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.fasterxml.jackson.annotation.JsonInclude;

/**
 *  文写大类
 *
 */
@Entity
@Table
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DocumentsCases extends AbstractAuditingEntity {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;

	@ApiModelProperty(value = "文书类型(大类)", example = "婚姻家庭类,劳动类")
	@Column(unique = true)
	private String caseType;
	
	@ApiModelProperty(value = "图标icon")
	private String icon;

	@ApiModelProperty(value = "价格")
	private Double price;
	
	@ApiModelProperty(value = "案件列表(小类)")
	@Transient
	private List<DocumentsCaseInfo> caseInfos;// 不映射数据库

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCaseType() {
		return caseType;
	}

	public void setCaseType(String caseType) {
		this.caseType = caseType;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public List<DocumentsCaseInfo> getCaseInfos() {
		return caseInfos;
	}

	public void setCaseInfos(List<DocumentsCaseInfo> caseInfos) {
		this.caseInfos = caseInfos;
	}

	
}
